package com.dengqi.mymodule.activity.touch;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.LinearLayout;

/**
 * Created by dell on 2019/3/6
 */
public class LinearLayoutB extends LinearLayout {
    private final String TAG = "LinearLayoutB";

    public LinearLayoutB(Context context) {
        super(context);
    }

    public LinearLayoutB(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public LinearLayoutB(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.i(TAG, "dispatchTouchEvent" + ev.getAction());
        return super.dispatchTouchEvent(ev);
    }


    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        Log.i(TAG, "onInterceptTouchEvent" + ev.getAction());
        return true;
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        Log.i(TAG, "onTouchEvent" + event.getAction());
        return super.onTouchEvent(event);
    }

}